<?php

namespace DebugComponent;

/**
 * Message plugin interface
 */
interface IMessagePlugin extends IPlugin {
    /**
     * Retrieve array of messages which plugin wants to accept
     *
     * @return array
     */
    public function getListenMessages();

    /**
     * Process message
     *
     * @param IMessage $message
     * @return void
     */
    public function write(IMessage $message);
}